#-------------------------------------------------
#
# Project created by QtCreator 2015-11-23T17:06:06
#
#-------------------------------------------------

QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = test_container
TEMPLATE = app
DESTDIR = $$OUT_PWD/../bin
LIBS += -L$$DESTDIR -L$$DESTDIR/bin

LIBS += -lqtwidget_planetosm
INCLUDEPATH += $$PWD/../qtviewer_planetosm
win32{
#if you want to build activec ctrls, please uncomment this line
#DEFINES += BUILD_ACTIVEX_OSM
message ($$QMAKE_COMPILER)
equals(QMAKE_COMPILER, msvc) {
    message (" VS Complier, UTF-8 switch is on.")
    QMAKE_CXXFLAGS += -utf-8
    QMAKE_CFLAGS += -utf-8
}
}
SOURCES += main.cpp
HEADERS  += testcontainer.h


win32:contains(DEFINES,BUILD_ACTIVEX_OSM){
    message ("Invoke ActiveX!");
    win32: QT+= axcontainer
    FORMS    += testcontainer.ui
    SOURCES += testcontainer.cpp
win32-g++{
	message ("Win32 ActiveX!");
}
} else {
    message ("Not Invoke ActiveX!");
    FORMS    += testcontainer_linux.ui
    SOURCES += testcontainer_linux.cpp
}

